package com.dailyblue.java.project.oa.commons.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dailyblue.java.project.oa.commons.bean.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface EmpMapper extends BaseMapper<Emp> {
    @Select("select count(id) from emp where ecode=#{ecode}")
    int findEmpByECode(String ecode);

    @Select("select count(id) from emp where phone=#{phone}")
    int findEmpByPhone(String phone);

}
